New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@axa-ch/materials

Package Overview
Dependencies
Maintainers
33
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axa-ch/materials

The materials component for the AXA Pattern Library

  • 1.8.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-86.1%
Maintainers
33
Weekly downloads
 
Created
Source

AXA Materials

Usage

Install Icons

npm install @axa-ch/materials

Usage

import {
  ArrowRightSvg,
  CollapseSvg,
} from '@axa-ch/materials/icons';

Native

this.render() {

}

React

this.render() {

}

Icon set

Add Icon

  • Move the raw SVG file into raw-icons
  • The npm run build-icons script will optimize and clean the SVG and export it as a JS-importable string for further usage.

SVGs

(Complete list is visible here)

icons
AddSvg
ArrowLeftSvg
ArrowRightSvg
AttachFileSvg
CancelSvg
CaretSvg
CheckCircleSvg
ClearSvg
CloudUploadSvg
CollapseSvg
DateInputSvg
DeleteForeverSvg
DocumentSvg
DownloadSvg
EmailSvg
ExpandSvg
FacebookSvg
InfoFlatSvg
InfoSvg
InstagramSvg
LinkedinSvg
MobileSvg
PhoneSvg
PlusSvg
SearchSvg
TwitterSvg
UploadSvg
XingSvg
YoutubeSvg
images
AxaLogoSvg
AxaLogoOpenSvg

Contribution

Process:

  1. Involve a designer by sending him the new SVG in question, unless the designer already has the file. He will review it and possibly change some things, for example by adjusting inner padding etc. in order to guarantee overall quality.
  2. Remove unnecessary code inside the SVG:
    • a. data-name="Layer 2" # layer info for vector drawing software
    • b. <path fill="#fff" d="M0 0h96v96H0z"/> # outer bounding box filled with white background
    • a. use the internal svgo-invoking scripts npm run build-icons or npm run build-images to clean up and optimize the SVGs, then copy the optimized files back from the .tmp folder to icons-raw or images-raw
    • b. alternatively use the [online SVG optimizer](https://jakearchibald.github.io/svgomg/] for the same purpose
  3. Manually review the SVGs produced in the last step: add or edit <path> attributes, setting fill="currentColor" and/or strokes="currentColor" as appropriate. Remove unnecessary attributes.

FAQs

Package last updated on 17 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc